package com.example.stock.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.example.stock.util.DateUtil;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Monitor {

    @ExcelProperty("添加日期")
    private String date;

    public void setDate(String date) {
        this.date = DateUtil.reFormatDate(date);
    }

    @ExcelProperty("状态")
    private int state;

    @ExcelProperty("标的")
    private String stock;

    @ExcelProperty("分类")
    private String category;

    @ExcelProperty("监控类型")
    private String type;

    @ExcelProperty("数据类型")
    private String dataType;

    @ExcelProperty("extra")
    private String extra;

    @ExcelProperty("描述")
    private String description;

    @ExcelProperty("建议操作")
    private String operation;

    @ExcelProperty("权重")
    private int weight;
}
